package com.ruoyi.web.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 疾病管理对象 ybl_disease
 * 
 * @author 刘方越
 * @date 2023-02-01
 */
public class Disease extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 疾病名称 */
    @Excel(name = "疾病名称")
    private String name;

    /** 父级科目 */
    @Excel(name = "父级科目")
    private Long pid;

    /** 图标路径 */
    @Excel(name = "图标路径")
    private String iconpath;

    /** 排序 */
    @Excel(name = "排序")
    private Long sortid;
    /** 是否删除（0否1是） */
    private String isDel;

    /** 是否推荐（0否1是） */
    private String isRecommend;
    private List<Disease> diseaseList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setIconpath(String iconpath) 
    {
        this.iconpath = iconpath;
    }

    public String getIconpath() 
    {
        return iconpath;
    }
    public void setSortid(Long sortid) 
    {
        this.sortid = sortid;
    }

    public Long getSortid() 
    {
        return sortid;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("createTime", getCreateTime())
            .append("pid", getPid())
            .append("iconpath", getIconpath())
            .append("sortid", getSortid())
            .append("isDel", getIsDel())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }

    public String getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(String isRecommend) {
        this.isRecommend = isRecommend;
    }

    public List<Disease> getDiseaseList() {
        return diseaseList;
    }

    public void setDiseaseList(List<Disease> diseaseList) {
        this.diseaseList = diseaseList;
    }
}
